package Panels;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import componentes.labtext;
import componentes.panelconfondo;


public class PanelPeliculaEdit extends panelconfondo{

	//El grid del panel donde se almacena todo
	GridBagConstraints gbc;
	JLabel lbtitulo;
	JTextField tftitulo;
	JLabel lbdire;
	JTextField tfdire;
	JLabel lbcoste;
	JTextField tfcoste;
	JLabel lbproveedor;
	JTextField tbproveedor;
	
	
	
	public PanelPeliculaEdit(){
		super.setimagen("/recursos/cine1.jpg");
		this.dibujar();
		
		
	}
	
	
	
public void dibujar(){
			
		this.setLayout(new GridBagLayout());
         lbtitulo = new JLabel("Nombre: Salva");
        gbc = new GridBagConstraints(0, 0, 4, 1, 0, 0,
				GridBagConstraints.FIRST_LINE_START, GridBagConstraints.FIRST_LINE_START, new Insets(
						5, 5, 5, 5), 0, 0);
		this.add(lbtitulo, gbc);
		this.setLayout(new GridBagLayout());
        tftitulo = new JTextField("",15);
        gbc = new GridBagConstraints(0, 1, 4, 1, 0, 0,
				GridBagConstraints.FIRST_LINE_START, GridBagConstraints.SOUTH, new Insets(
						5, 5, 5, 5), 0, 0);
		this.add(tftitulo, gbc);
		labtext lbt = new labtext("texto del label");
	    gbc = new GridBagConstraints(0, 2, 4, 1, 0, 0,
				GridBagConstraints.FIRST_LINE_START, GridBagConstraints.BOTH, new Insets(
						5, 5, 5, 5), 0, 0);
		this.add(lbt, gbc);
		labtext lgbt = new labtext("Nombre:");
	    gbc = new GridBagConstraints(0, 3, 4, 1, 0, 0,
				GridBagConstraints.FIRST_LINE_START, GridBagConstraints.BOTH, new Insets(
						5, 5, 5, 5), 0, 0);
		this.add(lgbt, gbc);
		labtext lhbt = new labtext("Ne:");
	    gbc = new GridBagConstraints(0, 4, 4, 1, 0, 0,
				GridBagConstraints.FIRST_LINE_START, GridBagConstraints.BOTH, new Insets(
						5, 5, 5, 5), 0, 0);
		this.add(lhbt, gbc);
		lbt.setText("hola");
		
	}
}
